//
//  SpriteUtil.h
//  DiceWar
//
//  Created by Xiao  Feng on 17/6/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#ifndef GAME_UTIL_SPRITEUTIL_H_
#define GAME_UTIL_SPRITEUTIL_H_

#include "cocos2d.h"

namespace SpriteUtil 
{
    /** create a sprite with the image specified in the file path at position
     */
    cocos2d::CCSprite* createSprite(const char* filePath, const cocos2d::CCPoint& position);
    
    /** create a sprite with the image specified in the file path at position with size scale relative to screen size
     */
    cocos2d::CCSprite* createSprite(const char* filePath, const cocos2d::CCPoint& position, const cocos2d::CCSize& relativeSizeToScreen);
}

#endif //GAME_UTIL_SPRITEUTIL_H_
